<?php

    include "./sql.php";

    

    $user = $_REQUEST['user'];

    $d = queryOne("SELECT * FROM cart WHERE user = '".$user."'");

    if($d){
        echo(json_encode($d));  
    }else{
        $backData = array("code"=>1,"errMsg"=>"商品ID不存在","sucMsg"=>"");
        die(json_encode($backData));
    };



?>